package com.woniuxy.dynamic.client;

import com.woniuxy.dynamic.jdk.JdkDynamic;
import com.woniuxy.dynamic.service.UserService;
import com.woniuxy.dynamic.service.impl.UserServiceImpl;

public class TestProxy {
    public static void main(String[] args) {
        UserService userService = new UserServiceImpl();
        JdkDynamic jdkDynamic = new JdkDynamic();
        UserService proxyObject = (UserService) jdkDynamic.getProxyObject(userService);

        proxyObject.addOne();
        proxyObject.deleteOne();
    }
}
